package com.itheima.com.Controller;

import com.itheima.com.domain.Student;

import java.util.Scanner;

public class StudentController extends BaseStudentController{
    private Scanner sc=new Scanner(System.in);

    public Student inputStuInfo(String id) {
        System.out.println("输入学生姓名：");
        String name=sc.next();
        System.out.println("输入学生年龄：");
        String age=sc.next();
        System.out.println("输入学生生日：");
        String birthday=sc.next();
        Student stu=new Student();
        stu.setId(id);
        stu.setName(name);
        stu.setAge(age);
        stu.setBirthday(birthday);
        return stu;
    }
}
